package com.merry.spring5.diRef;

public class Emp {
    private String empName;
    private int empAge;
    private Dept dept;
    /**
     * 爱好
     */
    private String[] loves;

    public String[] getLoves() {
        return loves;
    }

    public void setLoves(String[] loves) {
        this.loves = loves;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public String getEmpName() {
        return empName;
    }

    public void setEmpName(String empName) {
        this.empName = empName;
    }

    public int getEmpAge() {
        return empAge;
    }

    public void setEmpAge(int empAge) {
        this.empAge = empAge;
    }

    public void work(){
        System.out.println("work: "+empName+" : "+empAge+" : "+dept.getDeptName());
    }
}
